﻿using MediatR;
using RBAC.LuFang.API.Application.Command.imgCommand;
using RBAC.LuFang.Domin.Services.TraceabilityService;

namespace RBAC.LuFang.API.Application.CommandHandlers.imgCommandHandler
{
    //删除相关资质
    public class imgRelatedDelCommandHandler:IRequestHandler<imgRelatedDelCommand,int>
    {
        private readonly IslaughterService _slaService;

        public imgRelatedDelCommandHandler(IslaughterService slaService)
        {
            _slaService = slaService;
        }

        public async Task<int> Handle(imgRelatedDelCommand request, CancellationToken cancellationToken)
        {
            return await _slaService.DelRelatedPid(request.id);
        }
    }
}
